<?php use_stylesheet('gene.css') ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>RoyalForexFunds-Genealogy</title>
<?php include_stylesheets() ?>
<style type="text/css">
<!--
input.groovybutton
{
   font-size:14px;
   font-family:Trebuchet MS,sans-serif;
   font-weight:bold;
   color:#FFFFFF;
   height:19px;
   background-color:#0077BB;
   border-style:none;
   
}

#Layer1 {
	position:absolute;
	left:618px;
	top:61px;
	width:109px;
	height:108px;
	z-index:1;
}
#Layer2 {
	position:absolute;
	left:240px;
	top:242px;
	width:816px;
	height:165px;
	z-index:2;
}
#Layer3 {
	position:absolute;
	left:111px;
	top:426px;
	width:1066px;
	height:174px;
	z-index:3;
}
#Layer4 {
	position:absolute;
	left:22px;
	top:603px;
	width:1206px;
	height:158px;
	z-index:4;
}
#Layer5 {
	position:absolute;
	left:385px;
	top:15px;
	width:0px;
	height:8px;
	z-index:5;
}
#Layer6 {
	position:absolute;
	left:332px;
	top:89px;
	width:228px;
	height:131px;
	z-index:6;
}
#Layer7 {
	position:absolute;
	left:796px;
	top:89px;
	width:231px;
	height:135px;
	z-index:7;
}
#Layer8 {
	position:absolute;
	left:1232px;
	top:733px;
	width:5px;
	height:0px;
	z-index:8;
}
#Layer9 {
	position:absolute;
	left:19px;
	top:776px;
	width:1210px;
	height:31px;
	z-index:8;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
function validateSearch()
{
	var frm = document.searchform;
	if (frm.uname.value == '') {
		alert('Please fill User Name For Search Genealogy');
	} else {
		document.location.href = frm.uname.value;
	}
	return false;
}
</script>
</head>

<body>

<div id="Layer1">
  <table width="100%" border="0" cellspacing="2" cellpadding="2">
    <tr>
      <td><img src="/images/gene/onmose1.gif" width="110" height="146" /></td>
    </tr>
    <tr>
      <td align="center" class="burgundy"><a href="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser->getUsername())) ?>" class='bigtext'><?php echo $xistsUser->getUsername();?></a></td>
    </tr>
  </table>

</div>
<div id="Layer2">
  <table width="100%" border="0" cellspacing="2" cellpadding="2">
    <tr>
      <td colspan="3" align="center"><img src="/images/gene/root1.gif" width="739" height="31" /></td>
    </tr>
    <tr>
      <td width="12%" align="center"><A href="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_1_left->getUsername())) ?>" onmouseover="document.but2.src='/images/gene/onmose1.gif'"
onmouseout="document.but2.src='/images/gene/new.gif'"><img src="/images/gene/new.gif" NAME="but2"  border="0" width="78" height="107" /></A></td>
      <td width="76%">&nbsp;</td>
      <td width="12%" align="center"><A href="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_1_right->getUsername())) ?>" onmouseover="document.but3.src='/images/gene/onmose1.gif'"
onmouseout="document.but3.src='/images/gene/new.gif'"><img src="/images/gene/new.gif" NAME="but3"  border="0" width="78" height="107" /></A></td>

    </tr>
    <tr>
      <td align="center" nowrap="nowrap" class="burgundy"><p align='center' class='redtext2'>LEFT</p><a href="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_1_left->getUsername())) ?>"><?php echo $xistsUser_1_left->getUsername();?></a></td>
      <td>&nbsp;</td>
      <td align="center" nowrap="nowrap" class="burgundy"><p align='center' class='redtext2'>RIGHT</p><a href="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_1_right->getUsername())) ?>"><?php echo $xistsUser_1_right->getUsername();?></a></td>
    </tr>
  </table>

</div>
<div id="Layer3">
  <table width="100%" border="0" cellspacing="2" cellpadding="2">
    <tr>
      <td width="36%" align="center"><img src="/images/gene/root2.gif" width="294" height="29" /></td>
      <td width="6%">&nbsp;</td>
      <td width="23%" align="center">&nbsp;</td>
      <td width="35%" align="center"><img src="/images/gene/root2.gif" width="294" height="29" /></td>
    </tr>
    <tr>

      <td><table width="100%" border="0" cellspacing="2" cellpadding="2">
        <tr>
          <td width="25%"><A HREF="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_2_1_left->getUsername())) ?>" onmouseover="document.but4.src='/images/gene/onmose1.gif'"
onmouseout="document.but4.src='/images/gene/new.gif'"><img src="/images/gene/new.gif" NAME="but4"  border="0" width="78" height="107" /></A></td>
          <td width="54%">&nbsp;</td>
          <td width="21%"><A HREF="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_2_2_right->getUsername())) ?>" onmouseover="document.but5.src='/images/gene/onmose1.gif'"
onmouseout="document.but5.src='/images/gene/new.gif'"><img src="/images/gene/new.gif" NAME="but5"  border="0" width="78" height="107" /></A></td>
        </tr>
        <tr>
          <td align="center" nowrap="nowrap" class="burgundy"><p align='center' class='redtext2'>LEFT</p><a href="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_2_1_left->getUsername())) ?>"><?php echo $xistsUser_2_1_left->getUsername()?></a></td>

          <td>&nbsp;</td>
          <td align="center" nowrap="nowrap" class="burgundy"><p align='center' class='redtext2'>RIGHT</p><a href="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_2_2_right->getUsername())) ?>"><?php echo $xistsUser_2_2_right->getUsername()?></a></td>
        </tr>
      </table></td>
      <td colspan="2">&nbsp;</td>
      <td><table width="97%" border="0" align="center" cellpadding="2" cellspacing="2">
        <tr>
          <td width="23%"><A HREF="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_2_3_left->getUsername())) ?>" onmouseover="document.but6.src='/images/gene/onmose1.gif'"
onmouseout="document.but6.src='/images/gene/new.gif'"><img src="/images/gene/new.gif" NAME="but6"  border="0" width="78" height="107" /></A></td>

          <td width="55%">&nbsp;</td>
          <td width="22%"><A HREF="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_2_4_right->getUsername())) ?>" onmouseover="document.but7.src='/images/gene/onmose1.gif'"
onmouseout="document.but7.src='/images/gene/new.gif'"><img src="/images/gene/new.gif" NAME="but7"  border="0" width="78" height="107" /></A></td>
        </tr>
        <tr>
          <td align="center" nowrap="nowrap" class="burgundy"><p align='center' class='redtext2'>LEFT</p><a href="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_2_3_left->getUsername())) ?>"><?php echo $xistsUser_2_3_left->getUsername()?></a></td>
          <td>&nbsp;</td>
          <td align="center" nowrap="nowrap" class="burgundy"><p align='center' class='redtext2'>RIGHT</p><a href="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_2_4_right->getUsername())) ?>"><?php echo $xistsUser_2_4_right->getUsername()?></a></td>

        </tr>
      </table></td>
    </tr>
  </table>
</div>
<div id="Layer4">
  <table width="100%" border="0" cellspacing="2" cellpadding="2">
    <tr>
      <td width="22%" align="center"><img src="/images/gene/root3.gif" width="188" height="33" /></td>
      <td width="6%" align="center">&nbsp;</td>

      <td width="17%" align="center"><img src="/images/gene/root3.gif" width="188" height="33" /></td>
      <td width="13%">&nbsp;</td>
      <td width="21%" align="center"><img src="/images/gene/root3.gif" width="188" height="33" /></td>
      <td width="21%" align="center"><img src="/images/gene/root3.gif" width="188" height="33" /></td>
    </tr>
  </table>
  <table width="100%" border="0" cellspacing="2" cellpadding="2">
    <tr>
      <td width="7%"><A HREF="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_3_1_left->getUsername())) ?>" onmouseover="document.but8.src='/images/gene/onmose1.gif'"
onmouseout="document.but8.src='/images/gene/new.gif'"><img src="/images/gene/new.gif" NAME="but8"  border="0" width="78" height="107" /></A></td>

      <td width="8%">&nbsp;</td>
      <td width="7%"><A HREF="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_3_2_right->getUsername())) ?>" onmouseover="document.but9.src='/images/gene/onmose1.gif'"
onmouseout="document.but9.src='/images/gene/new.gif'"><img src="/images/gene/new.gif" NAME="but9"  border="0" width="78" height="107" /></A></td>
      <td width="4%">&nbsp;</td>
      <td width="7%"><A HREF="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_3_3_left->getUsername())) ?>" onmouseover="document.but10.src='/images/gene/onmose1.gif'"
onmouseout="document.but10.src='/images/gene/new.gif'"><img src="/images/gene/new.gif" NAME="but10"  border="0" width="78" height="107" /></A></td>
      <td width="7%">&nbsp;</td>
      <td width="7%"><A HREF="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_3_4_right->getUsername())) ?>" onmouseover="document.but11.src='/images/gene/onmose1.gif'"
onmouseout="document.but11.src='/images/gene/new.gif'"><img src="/images/gene/new.gif" NAME="but11"  border="0" width="78" height="107" /></A></td>
      <td width="11%">&nbsp;</td>
      <td width="7%"><A HREF="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_3_5_left->getUsername())) ?>" onmouseover="document.but12.src='/images/gene/onmose1.gif'"
onmouseout="document.but12.src='/images/gene/new.gif'"><img src="/images/gene/new.gif" NAME="but12"  border="0" width="78" height="107" /></A></td>
      <td width="7%">&nbsp;</td>
      <td width="7%"><A HREF="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_3_6_right->getUsername())) ?>" onmouseover="document.but13.src='/images/gene/onmose1.gif'"
onmouseout="document.but13.src='/images/gene/new.gif'"><img src="/images/gene/new.gif" NAME="but13"  border="0" width="78" height="107" /></A></td>
      <td width="1%">&nbsp;</td>
      <td width="7%"><A HREF="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_3_7_left->getUsername())) ?>" onmouseover="document.but14.src='/images/gene/onmose1.gif'"
onmouseout="document.but14.src='/images/gene/new.gif'"><img src="/images/gene/new.gif" NAME="but14"  border="0" width="78" height="107" /></A></td>
      <td width="6%">&nbsp;</td>
      <td width="7%"><A HREF="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_3_8_right->getUsername())) ?>" onmouseover="document.but15.src='/images/gene/onmose1.gif'"
onmouseout="document.but15.src='/images/gene/new.gif'"><img src="/images/gene/new.gif" NAME="but15"  border="0" width="78" height="107" /></A></td>
    </tr>
    <tr>
      <td align="center" nowrap="nowrap" class="burgundy"><p align='center' class='redtext2'>LEFT</p><a href="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_3_1_left->getUsername())) ?>"><?php echo $xistsUser_3_1_left->getUsername()?></a></td>
      <td>&nbsp;</td>
      <td align="center" nowrap="nowrap" class="burgundy"><p align='center' class='redtext2'>RIGHT</p><a href="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_3_2_right->getUsername())) ?>"><?php echo $xistsUser_3_2_right->getUsername()?></a></td>
      <td>&nbsp;</td>
      <td align="center" nowrap="nowrap" class="burgundy"><p align='center' class='redtext2'>LEFT</p><a href="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_3_3_left->getUsername())) ?>"><?php echo $xistsUser_3_3_left->getUsername()?></a></td>
      <td>&nbsp;</td>
      <td align="center" nowrap="nowrap" class="burgundy"><p align='center' class='redtext2'>RIGHT</p><a href="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_3_4_right->getUsername())) ?>"><?php echo $xistsUser_3_4_right->getUsername()?></a></td>
      <td>&nbsp;</td>
      <td align="center" nowrap="nowrap" class="burgundy"><p align='center' class='redtext2'>LEFT</p><a href="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_3_5_left->getUsername())) ?>"><?php echo $xistsUser_3_5_left->getUsername()?></a></td>
      <td>&nbsp;</td>
      <td align="center" nowrap="nowrap" class="burgundy"><p align='center' class='redtext2'>RIGHT</p><a href="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_3_6_right->getUsername())) ?>"><?php echo $xistsUser_3_6_right->getUsername()?></a></td>
      <td>&nbsp;</td>
      <td align="center" nowrap="nowrap" class="burgundy"><p align='center' class='redtext2'>LEFT</p><a href="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_3_7_left->getUsername())) ?>"><?php echo $xistsUser_3_7_left->getUsername()?></a></td>
      <td>&nbsp;</td>
      <td align="center" nowrap="nowrap" class="burgundy"><p align='center' class='redtext2'>RIGHT</p><a href="<?php echo url_for(array('sf_route' => 'genealogy', 'username' => $xistsUser_3_8_right->getUsername())) ?>"><?php echo $xistsUser_3_8_right->getUsername()?></a></td>
    </tr>
  </table>
</div>
<div id="Layer5"></div>
<div id="Layer6">
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainBox">
    <tr>

      <th  class="boxTL">&nbsp;</th>
      <th  class="boxTop"><table width="100%" border="0">
          <tr>
            <td align="center" class="blue">Previous Month(s)</td>
          </tr>
      </table></th>
      <th  class="boxTR">&nbsp;</th>
    </tr>

    <tr bgcolor="#FFFFCC">
      <td class="boxLeft">&nbsp;</td>
      <td class="boxInner list"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>
                <table class="" cellspacing="0" border="0" width="100%">
                  <tr>
                    <td ><table cellspacing="1" cellpadding="3" border="0" width="100%">
                        <tr>

                          <td colspan="7"><table width="100%" border="0">
                              <tr>
                                <td class="leftNav" style="cursor:hand;"><table width="100%" border="0" align="center" cellpadding="2" cellspacing="2">
                                    <tr align="left" >
                                      <td align="center" class="redtext">Left</td>
                                      <td align="center" class="redtext">Right</td>
                                    </tr>
                                    <tr align="left" >

                                      <td width="49%" align="center" class="pboxname"><?php echo $xistsUser->getPrevMemberCount('left');?></td>
                                      <td width="51%" align="center" class="pboxname"><?php echo $xistsUser->getPrevMemberCount('right'); ?></td>
                                    </tr>
                                    <tr align="left">
                                      <td align="center" class="pboxname"><?php echo sfConfig::get('app_currency') ?> <?php echo $xistsUser->getPrevAmountTotal('left');?></td>
                                      <td align="center" class="pboxname"><?php echo sfConfig::get('app_currency') ?> <?php echo $xistsUser->getPrevAmountTotal('right');?></td>
                                    </tr>
                                </table></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr> </tr>
                    </table></td>
                  </tr>
                </table>
            </td>
          </tr>
      </table></td>
      <td class="boxRight">&nbsp;</td>
    </tr>
    <tr>
      <td class="boxGrayBL">&nbsp;</td>
      <td class="boxGrayBot"></td>

      <td class="boxGrayBR">&nbsp;</td>
    </tr>
  </table>
</div>
<div id="Layer7">
  <table width="101%" border="0" cellpadding="0" cellspacing="0" class="mainBox">
    <tr>
      <th  class="boxTL">&nbsp;</th>
      <th  class="boxTop"><table width="100%" border="0">
          <tr>
            <td align="center" class="blue">Present Month</td>
          </tr>
      </table></th>
      <th  class="boxTR">&nbsp;</th>
    </tr>
    <tr bgcolor="#FFFFCC">
      <td class="boxLeft">&nbsp;</td>
      <td class="boxInner list"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>
                <table class="" cellspacing="0" border="0" width="100%">
                  <tr>
                    <td ><table cellspacing="1" cellpadding="3" border="0" width="100%">
                        <tr>
                          <td colspan="7"><table width="100%" border="0">
                              <tr>
                                <td class="leftNav" style="cursor:hand;"><table width="100%" border="0" align="center" cellpadding="2" cellspacing="2">

                                    <tr align="left" >
                                      <td align="center" class="redtext">Left</td>
                                      <td align="center" class="redtext">Right</td>
                                    </tr>
                                    <tr align="left" >
                                      <td width="49%" align="center" class="pboxname"><?php echo $xistsUser->getCurMemberCount('left');?></td>
                                      <td width="51%" align="center" class="pboxname"><?php echo $xistsUser->getCurMemberCount('right');?></td>

                                    </tr>
                                    <tr align="left">
                                      <td align="center" class="pboxname"><?php echo sfConfig::get('app_currency') ?> <?php echo $xistsUser->getCurAmountTotal('left');?></td>
                                      <td align="center" class="pboxname"><?php echo sfConfig::get('app_currency') ?> <?php echo $xistsUser->getCurAmountTotal('right');?></td>
                                    </tr>
                                </table></td>
                              </tr>

                          </table></td>
                        </tr>
                        <tr> </tr>
                    </table></td>
                  </tr>
                </table>
            </td>
          </tr>
      </table></td>
      <td class="boxRight">&nbsp;</td>
    </tr>
    <tr>
      <td class="boxGrayBL">&nbsp;</td>
      <td class="boxGrayBot"></td>
      <td class="boxGrayBR">&nbsp;</td>
    </tr>

  </table>
</div>
<div id="Layer9"></div>
<table width="100%" border="0" cellspacing="5" cellpadding="5">
  <tr>
    <td style="line-height:5px;">&nbsp;</td>
  </tr>
  <tr>
    <td><div align="left" class="Arial17bold"><strong>
    <?php echo $xistsUser->getUsername(); ?>  's <span class="leftNav">Genealogy</span></strong></div></td>
  </tr>
  <tr>
    <td><form id="searchform" name="searchform" method="post" action="" onsubmit="return validateSearch();">
	    <table width="100%" border="0" cellspacing="3" cellpadding="3">
	      <tr>
	        <td colspan="2" align="right">
				<?php if ($sf_user->hasFlash('notice')): ?>
		          <div class="flash_notice">
		            <?php echo $sf_user->getFlash('notice') ?>
		          </div>
		        <?php endif; ?>
		 
		        <?php if ($sf_user->hasFlash('error')): ?>
		          <div class="flash_error">
		            <?php echo $sf_user->getFlash('error') ?>
		          </div>
		        <?php endif; ?>
	        </td>
	        <td></td>
	      </tr>
	      <tr>
	        <td width="9%" align="left" nowrap="nowrap"><span class="blue">Search Member</span><span class="pboxname">:</span> </td>
	        <td width="13%" align="left"><input type="text" name="uname" /></td>
	        <td width="78%" align="left"><input type="submit" name="search" class="groovybutton" value="Search" style="cursor:hand;" /></td>
	      </tr>
	    </table>
	 </form>
   </td>
  </tr>
  <tr>
    <td><table width="12%" border="0" cellspacing="4" cellpadding="9">
      <tr>
        <td width="38%" align="right"><a href="javascript:history.back(-1);" class="pboxname"><img src="/images/gene/go-back.gif" width="23" height="21" border="0" /></a></td>
        <td width="62%" align="left" class="bluebold"><a href="javascript:history.back(-1);" class="pboxname">Go Back </a></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>

</table>

</body>
</html>